#ifndef COUNTACTIVITY_H
#define COUNTACTIVITY_H
#include <QWidget>
#include <QTimer>
#include <QPushButton>
#include <QLabel>
#include <QComboBox>
#include "Act.h"
#include "Bridget.h"

class CountActivity : public QWidget
{
    Q_OBJECT

private:
    QTimer* countTimer;
   // QPushButton stopButton;
    QPushButton setStatusButton;
    QComboBox* activity;
    QLabel *ltimer;
    QLabel *curActivity;
    QTime curTime;
    bool setStatus;
    int h;
    int m;
    int s;

    Act* act;



public:

     CountActivity(QWidget *parent = 0, Bridget *bd=0);
    ~CountActivity() {};
    bool getSetStatus();
    double getEnergy();
    QTimer* countTimer2;
QPushButton stopButton;

public slots:
    void slotUpdateTimer();
    void onStopButtonClicked();
    void onSetStatusButton();
    void slotUpdateAct();


};
#endif // COUNTACTIVITY_H
